package com.example.backend.service;

import com.example.backend.entity.StorageIn;
import java.util.List;

public interface StorageInService {
    int addStorageIn(StorageIn storageIn);
    StorageIn getStorageInById(Long id);
    List<StorageIn> getAllStorageIn();
    int updateStorageIn(StorageIn storageIn);
    int deleteStorageIn(Long id);
//    List<StorageIn> getByOrderNumber(String orderNumber);
    List<StorageIn> getStorageInByPortId(Long portId);
    List<StorageIn> getUnOutByCompanyAndPortOrderByDate(Long companyId, Long portId);
    List<StorageIn> getByCompanyAndWarehouse(Long companyId, Long warehouseId);
    /**
     * 批量入库，遇到异常立即停止，返回成功条数
     */
    int batchAddStorageIn(List<StorageIn> storageInList);
    int deleteAll();
} 